package test;

import java.io.PrintWriter;

public class Info_Page {
	private PrintWriter lo_Writer;
	public Info_Page(PrintWriter lo_Writer){
		this.lo_Writer=lo_Writer;
	}
	
	public void writeInfo(){
		String newLine = "\n</br>";
	//	String host = "http://cloudcampustestenv-5j6ttihkjr.elasticbeanstalk.com";
		String host = "http://localhost:8080/AufgabenblattV2";
		lo_Writer.println("<html><head></head><body>");
		lo_Writer.println("Hier ein paar links zum ausprobieren:"+newLine);
		lo_Writer.println(""+newLine);
		lo_Writer.println(""+newLine);
		lo_Writer.println("2 Foren anlegen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Forum&method=create&tenant=Tenant_2&quantity=2&parameter.1.ersteller=Markus&parameter.1.admin.1=Markus&parameter.1.admin.2=Johannes&parameter.1.beschreibung=Markus Forum&parameter.1.name=Forum100&parameter.2.ersteller=Hans&parameter.2.admin.1=Alex&parameter.2.admin.2=Johannes&parameter.2.admin.3=Robin&parameter.2.beschreibung=DAS Forum&parameter.2.name=Forum007'>"+host+"/runtime?class=Forum&method=create&tenant=Tenant_2&quantity=2&parameter.1.ersteller=Markus&parameter.1.admin.1=Markus&parameter.1.admin.2=Johannes&parameter.1.beschreibung=Markus Forum&parameter.1.name=Forum100&parameter.2.ersteller=Hans&parameter.2.admin.1=Alex&parameter.2.admin.2=Johannes&parameter.2.admin.3=Robin&parameter.2.beschreibung=DAS Forum&parameter.2.name=Forum007</a>"+newLine);
		lo_Writer.println(""+newLine);
		lo_Writer.println("Lesen:"+newLine);
		lo_Writer.println(""+newLine);
		lo_Writer.println("Ein Forum lesen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Forum&method=read&tenant=Tenant_1&id.1=11a89fde-010b-4a66-86aa-d9380f2dd642'>"+host+"/runtime?class=Forum&method=read&tenant=Tenant_1&id.1=11a89fde-010b-4a66-86aa-d9380f2dd642</a>"+newLine);
		lo_Writer.println("Mehrere Foren lesen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Forum&method=read&tenant=Tenant_2&id.1=3324887a-e3b2-4ede-956e-511d6bf99585&id.2=5001be12-83e6-4b27-9818-8839fe416821'>"+host+"/runtime?class=Forum&method=read&tenant=Tenant_2&&id.1=3324887a-e3b2-4ede-956e-511d6bf99585&id.2=5001be12-83e6-4b27-9818-8839fe416821</a>"+newLine);
		lo_Writer.println("Alle Foren des Tenants lesen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Forum&method=readAll&tenant=Tenant_1'>"+host+"/runtime?class=Forum&method=readAll&tenant=Tenant_1</a>"+newLine);
		lo_Writer.println(""+newLine);		
		lo_Writer.println("Alle Threads eines Forums lesen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Thread&method=readAll&forum=cabbe844-f13d-4f66-b45a-c8296b87baf3'>"+host+"/runtime?class=Thread&method=readAll&forum=cabbe844-f13d-4f66-b45a-c8296b87baf3</a>"+newLine);
		lo_Writer.println("Ein bestimmten Thread lesen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Thread&method=read&forum=cabbe844-f13d-4f66-b45a-c8296b87baf3&id.1=136a98e5-8c65-4718-9df1-af9d0b2e79c3'>"+host+"runtime?class=Thread&method=read&forum=cabbe844-f13d-4f66-b45a-c8296b87baf3&id.1=136a98e5-8c65-4718-9df1-af9d0b2e79c3</a>"+newLine);
		lo_Writer.println(""+newLine);
		lo_Writer.println("Alle Entrys eines Threads lesen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Entry&method=readAll&thread=136a98e5-8c65-4718-9df1-af9d0b2e79c3'>"+host+"/runtime?class=Entry&method=readAll&thread=136a98e5-8c65-4718-9df1-af9d0b2e79c3</a>"+newLine);
		lo_Writer.println("Ein bestimmten Entry lesen"+newLine);
		lo_Writer.println("<a href='"+host+"/runtime?class=Entry&method=read&thread=136a98e5-8c65-4718-9df1-af9d0b2e79c3&id.1=2013/05/27 13:20:45:334'>"+host+"/runtime?class=Entry&method=read&thread=136a98e5-8c65-4718-9df1-af9d0b2e79c3&id.1=2013/05/27 13:20:45:334</a>"+newLine);
		lo_Writer.println("</body></html>");
	}
}
